﻿using Caliburn.Micro;

namespace Wulong.Phone.Qiushi.ViewModels
{
    public class NewPostViewModelStorage : StorageHandler<NewPostViewModel>
    {
        public override void Configure()
        {
            Property(x => x.Body).InPhoneState().RestoreAfterActivation();
            Property(x => x.Tags).InPhoneState().RestoreAfterActivation();
            Property(x => x.FileParam).InPhoneState().RestoreAfterActivation();
            Property(x => x.IsAnonymous).InPhoneState().RestoreAfterActivation();
            Property(x => x.IsCommentAllowed).InPhoneState().RestoreAfterActivation();
        }
    }
}
